
<#include "header.ftl">
  <!-- 内容区域 -->
<div class="tpl-content-wrapper">
 <div class="container-fluid am-cf">
                <div class="row">
                    <div class="am-u-sm-12 am-u-md-12 am-u-lg-9">
                        <ol class="am-breadcrumb">
						  <li><a href="${Domain}my" class="am-icon-home">首页</a></li>
						  <li ><a href="${Domain}my/patient/list">患者</a></li>
						  <li class="am-active">${patient.name}健康档案</li>						  
						</ol>
                    </div>
                  	<#include "../common/return.ftl">
                </div>
  </div>
       <div class="row-content am-cf">
                <div class="row">
                <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                        <div class="widget am-cf">
                            <div class="widget-head am-cf">
                                  <div class="widget-title  am-fl">
                                   	患者:${patient.name}
                                                                                           性别：<#switch patient.gender>
										           <#case 0> 未知 <#break>
										           <#case 1>男<#break>
										           <#case 2>女<#break>
										           <#default>未知
										 </#switch>
									 年龄：${patient.Age()}
									 身份证：${patient.SimpleNo()}
								</div>
								<div class="widget-function am-fr">
                                    <a href="${Domain}my/patient/accessadd/${patient.id}/1?url=${url}" class="am-icon-plus"    data-am-popover="{theme: 'success sm',content: '新增问卷', trigger: 'hover focus'}"></a>
                                </div>

                            </div>
                            <div class="widget-body  am-fr">

                             

                                <div class="am-u-sm-12">
                                
                                
                                
                                <div class="am-scrollable-horizontal">
                                
                                    <table width="100%" class="<#include "../common/table-class.ftl">"  >
                                        <thead>
                                            <tr>
                                                <th width="80px">编号</th>
                                                <th>名称</th>
                                                <th>状态</th> 
                                                <th>进度</th>  
                                                <th>打开次数</th>  
                                                <th>用时</th>                                                      
                                              <th>创建时间</th>
                                              <th  width="120px">操作</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                        <#list list as item>
                                            <tr >
                                                 <td>${item.id}</td>
                                                <td>${item.name!}</td> 
                                                <td><#switch item.state>
										           <#case 0>创建 <#break>
										           <#case 1>进行<#break>
										           <#case 2>完成<#break>
										           <#case -1>失效<#break>
										           <#default>未知
										        	</#switch> </td>
										        	 
                                                  <td>
                                                  <#if item.total!=0>
                                                  ${item.speed*100/item.total}%(${item.speed}/${item.total})
                                                  <#else>
													-
												</#if>
												</td>                                        
                                                <td>${item.opencount}</td>
                                                <td>${item.usetime/1000}秒</td>
                                       
                                                <td>${item.time}</td>
                                                <td>
                                            
                                                    <div class="tpl-table-black-operation">
                                                       
                                                       <#if item.state==0||item.state==1>
                                                       <a href="${Domain}my/access/ask/${item.id}" target="_blank">
                                                            <i class="am-icon-question"></i> 访问
                                                        </a>
                                                        </#if>
                                                  	<a href="${Domain}my/access/show/${item.id}" target="_blank"  class="tpl-table-black-operation-del">
                                                            <i class="am-icon-file-o"></i> 详情
                                                        </a>
                                                 <a href="${Domain}my/access/update/${item.id}" target="_blank">
                                                            <i class="am-icon-pencil"></i> 更新
                                                        </a>
                                               
  													</div>
                                                </td>
                                            </tr>
                                            </#list>
                                        </tbody>
                                    </table>
                                    </div>
                                </div>
                              <table width="100%" class="am-table"  >
                                	<tbody>
                                	<tr>
                                                <th width="120px">姓名</th>
                                                <td>${patient.name}</td>
                                      </tr> 
                                      <tr>
                                                <th>性别</th>
                                                <td><#switch patient.gender>
										           <#case 0> 未知 <#break>
										           <#case 1>男<#break>
										           <#case 2>女<#break>
										           <#default>未知
										 </#switch></td>
                                      </tr> 
                                       <tr>
                                                <th> 年龄</th>
                                                <td>${patient.Age()}</td>
                                      </tr> 
                                       <tr>
                                                <th> 身份证</th>
                                                <td>${patient.SimpleNo()}</td>
                                      </tr> 
                                      <#list maps?keys as key>
                                      <#if maps[key]?size gt 0>
                                      <tr>
                                           <td> ${maps[key][0].name}</td>
                                           <td><#list maps[key] as item>${item.description} </#list></td>
                                      </tr> 
                                      </#if>
									　
									  </#list>       
                                	</tbody>
                                	</table>
                               
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        
 </div>     
 
    
<#include "footer.ftl">